* NEWS (fontification): Mention that the new default for
authorDavid Kastrup <dak@gnu.org>
Sun, 4 Mar 2007 08:41:08 +0000 (08:41 +0000)
committerDavid Kastrup <dak@gnu.org>
Sun, 4 Mar 2007 08:41:08 +0000 (08:41 +0000)
jit-lock-stealth-time is now nil.

* jit-lock.el (jit-lock-stealth-time): Change default to nil.
Preserve 16 as default value for "seconds" when customizing.

etc/ChangeLog
etc/NEWS
lisp/ChangeLog
lisp/jit-lock.el

index fb10d5367d7561a6bdcd1307a03d513156ed08d0..fbf63ec13b0a6d3f1872e55f4b17fbd9e2ee5a24 100644 (file)
@@ -1,3 +1,8 @@
+2007-03-04  David Kastrup  <dak@gnu.org>
+
+       * NEWS (fontification): Mention that the new default for
+       jit-lock-stealth-time is now nil.
+
 2007-03-01  Kim F. Storm  <storm@cua.dk>
 
        * ORDERS: Reformat text.
index 763faf4fe9ca41d3d8d644332edcc1d0363309d5..b229630fe0a32124923ad1462a71fcca57fe4b1b 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1055,10 +1055,16 @@ cperl-mode and make-mode support this.
 
 ---
 *** The default settings for JIT stealth lock parameters are changed.
-The default value for the user option jit-lock-stealth-time is now 16
-instead of 3, and the default value of jit-lock-stealth-nice is now
-0.5 instead of 0.125.  The new defaults should lower the CPU usage
-when Emacs is fontifying in the background.
+The default value for the user option jit-lock-stealth-time is now nil
+instead of 3.  This setting of jit-lock-stealth-time disables stealth
+fontification: on today's machines, it may be a bug in font lock
+patterns if fontification otherwise noticeably degrades interactivity.
+If you find movement in infrequently visited buffers sluggish (and the
+major mode maintainer has no better idea), customizing
+jit-lock-stealth-time to a non-nil value will let Emacs fontify
+buffers in the background when it considers the system to be idle.
+jit-lock-stealth-nice is now 0.5 instead of 0.125 which is supposed to
+cause less load than the old defaults.
 
 ---
 *** jit-lock can now be delayed with `jit-lock-defer-time'.
index 10a289d237cc0d1366766a43b2422d0ba84a9f2a..f1a0904d2a3c7e60e66d65d4bd4b4d723e6d3f1c 100644 (file)
@@ -1,3 +1,8 @@
+2007-03-04  David Kastrup  <dak@gnu.org>
+
+       * jit-lock.el (jit-lock-stealth-time): Change default to nil.
+       Preserve 16 as default value for "seconds" when customizing.
+
 2007-03-04  Carsten Dominik  <dominik@science.uva.nl>
 
        * textmodes/org.el (org-self-insert-command)
index 958bb679832d4d68c714c75cab1c6fa4584252dd..0471edb789168422947ce1a40314c14290a29873 100644 (file)
@@ -74,14 +74,14 @@ This variable controls both display-time and stealth fontification."
   :group 'jit-lock)
 
 
-(defcustom jit-lock-stealth-time 16
+(defcustom jit-lock-stealth-time nil
   "*Time in seconds to wait before beginning stealth fontification.
 Stealth fontification occurs if there is no input within this time.
 If nil, stealth fontification is never performed.
 
 The value of this variable is used when JIT Lock mode is turned on."
   :type '(choice (const :tag "never" nil)
-                (number :tag "seconds"))
+                (number :tag "seconds" :value 16))
   :group 'jit-lock)